<% unless @articles.nil? %>
<%= render :partial => 'articles/item', :collection =>@articles %>
<%= will_paginate  @articles%>
<% end %>

<% unless @articles.nil? %>
	<%if @articles.size == 0%>
	Sorry,there is no articles.
	<%end%>
<% end %>